{% extends "base.html" %}

  <!-- Page Header -->
{% block header %}
  <header class="masthead" style="background-image: url({{ url_for('static', path='/img/home-bg.jpg') }}">
    <div class="overlay"></div>
    <div class="container">
      <div class="row">
        <div class="col-lg-8 col-md-10 mx-auto">
          <div class="site-heading">
            <h1>分类导航</h1>
            <span class="subheading">快速导航</span>
          </div>
        </div>
      </div>
    </div>
  </header>
{% endblock %}

  <!-- Main Content -->
{% block content %}
  <div class="container">
    <div class="row">
      <div class="col-lg-8 col-md-10 mx-auto">
        {% for tag in tags %}
        <div class="post-preview">
          <a href="{{ url_for('get_tag_by_id', tid=tag.id) }}">
            <h2 class="post-title">
              {{ tag.name }}
            </h2>
        </div>
        <hr>
        {% endfor %}

        <!-- Pager -->
        <div class="clearfix">
          <a class="btn btn-primary float-right" href="#">更多分类 &rarr;</a>
        </div>
      </div>
    </div>
  </div>
{% endblock %}

